{% extends "admin/common.html" %}
{% block content %}
<table width="1280" height="288"  border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr>
    <td align="center" valign="top">
      <table width="100%"  border="0" cellpadding="0" cellspacing="0">
          <tr>
               <td height="2" colspan="2">&nbsp;</td>
          </tr>
          <tr>
          <td width="10" height="10" align="right">&nbsp;</td>
          <td colspan="3" height="10" class="tableBorder_B_dashed">
              <a href="{{url_for('admin.manufacturer_add')}}">
              <img src="{{url_for('static',filename='admin/images/manage_ico1.gif')}}" width="11" height="13">&nbsp;[添加厂商信息]
              </a>
          </td>
        </tr>
        <tr>
          <td align="right">&nbsp;</td>
          <td height="28" colspan="3">&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td height="29" align="right">&nbsp;</td>
          <td width="10" background="{{url_for('static',filename='admin/images/manage_leftTitle_left.gif')}}">&nbsp;</td>
          <td width="100%" align="center" background="{{url_for('static',filename='admin/images/manage_leftTitle_mid.gif')}}" class="word_white">
              <b>厂商信息列表</b>
          </td>
          <td width="10" background="{{url_for('static',filename='admin/images/manage_leftTitle_right.gif')}}">&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
      </table>
      <table width="98%" height="192"  border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td valign="top">
            <table width="100%"  border="1" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF" bordercolordark="#FFFFFF" bordercolorlight="#E6E6E6">
              <tr bgcolor="#eeeeee">
                <td height="25" align="center">厂商名称</td>
                <td height="25" align="center">唯一标识</td>
                <td height="25" align="center">编辑</td>
                <td height="25" align="center">删除</td>
              </tr>
              {% for v in page_data.items %}
              <tr style="padding:5px;">
                <td width="40%" height="25" align="center">{{ v.manufacturer_name }}</td>
                <td width="40%" height="25" align="center">{{ v.uuid }}</td>
                <td width="10%" align="center">
                    <a href="{{url_for('admin.manufacturer_edit',manu_id=v.id)}}">
                      <img src="{{url_for('static',filename='admin/images/modify.gif')}}" width="19" height="19">
                    </a>
                </td>
                <td width="10%" align="center">
                      <a onclick="return window.confirm('您想删除吗?');"
                         href="{{url_for('admin.manufacturer_del',manu_id=v.id)}}">
                         <img src="/static/admin/images/del.gif" width="20" height="20">
                      </a>
                  </td>
              </tr>
              {% endfor %}
            </table>
            {% if page_data %}
            <tbody>
             <tr>
               <td height="30" align="right">
                 当前页数：[{{ page_data.page }}/{{ page_data.pages }}]&nbsp;
                 <a href="{{ url_for('admin.index',page=1) }}">第一页</a>
                 {% if page_data.has_prev %}
                 <a href="{{ url_for('admin.index',page=page_data.prev_num) }}">上一页</a>
                 {% endif %}
                 {% if page_data.has_next %}
                                                　
                 <a href="{{ url_for('admin.index',page=page_data.next_num) }}">下一页</a>
                 {% endif %}　
                 <a href="{{ url_for('admin.index',page=page_data.pages) }}">最后一页&nbsp;</a>
               </td>
             </tr>
            </tbody>
            {% endif %}
          </td>
        </tr>
      </table>
</td>
{% endblock %}
